<include file="Admin@Public/header" /> 
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  <input type="hidden" id="web-url" value="__URL__"/>
    <ol class="breadcrumb">
      <li>网站内容</li>
      <li>幻灯片</li>
      <li class="active">列表</li>
    </ol>
  <div class="table-responsive">
   <form  class="form-horizontal" id="form-listorder" role="form"> 
       <table class="table">
            <thead>
              <tr>
                <th class="col-md-1">排序</th>
                <th class="col-md-1">#</th>
                <th class="col-md-2">标题</th>
                <th class="col-md-2">链接</th>
                <th class="col-md-3">图片缩略图</th>
                <th class="col-md-1">状态</th>
                <th class="col-md-3">操作</th>
              </tr>
            </thead>
          <tbody id="imageList">
      <volist name="list" id="vo">
            <tr>
              <td><input type="hidden" name="ids[]" value="{$vo.id}">
                  <input type="text" size="3" name="listorders[]" value="{$vo.listorder}" class="input-listorder" />
              </td>
              <td><input type="checkbox" name="checkbox_id" value="{$vo.id}"></td>
              <td>{$vo.title}</td>
              <td>{$vo.url}</td>
              <td><img src="<?php echo (C("IMAGE_ROOTPATH"));?>{$vo.imageid|imageSrc=###}" width="160" height="90"></td>
              <td><notempty name="vo.status"><i class="icon-unlock"></i> 显示 <else/><i class="icon-lock"></i> 隐藏</notempty></td>
              <td> 
                  <a class="btn btn-default btn-xs" href="__URL__/edit?id={$vo.id}"><i class="icon-edit"></i></a>
    <notempty name="vo.status">
      <a class="btn btn-warning btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=0','确定设置为隐藏？')"><i class="icon-lock"></i></a>
    <else/>
      <a class="btn btn-success btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=1','确定设置为显示？')"><i class="icon-unlock"></i></a>
    </notempty>
    <a class="btn btn-danger btn-xs" href="javascript:checkDialog('__URL__/delete?id={$vo.id}','确定选择彻底删除？')"><i class="icon-trash"></i></a>
                </td>
              </tr>
        </volist> 
            </tbody>
            <tfoot>
              <tr class="info">
               <include file="opreat"/>
              </tr>
            </tfoot> 
          </table>
        </form>  
      </div>
</div>

<include file="Admin@Public/script_list" />
<include file="Admin@Public/footer" /> 